import App from '../App';

// const list = r => require.ensure([], () => r(require('../views/list/list')), 'list');
// const home = r => require.ensure([], () => r(require('../views/home/home')), 'home');
// const detail = r => require.ensure([], () => r(require('../views/detail/detail')), 'detail');
// const page1 = r => require.ensure([], () => r(require('../views/page/page1')), 'page1');
// const page2 = r => require.ensure([], () => r(require('../views/page/page2')), 'page2');
const login = r => require.ensure([], () => r(require('../views/login/login')), 'login');
const forget = r => require.ensure([], () => r(require('../views/forget/forget')), 'forget');
const reg = r => require.ensure([], () => r(require('../views/reg/reg')), 'reg');
const main = r => require.ensure([], () => r(require('../views/main/mainNEW')), 'main');
const pri = r => require.ensure([], () => r(require('../views/private/private')), 'private');
const sign = r => require.ensure([], () => r(require('../views/sign/sign')), 'sign');
const gameList = r => require.ensure([], () => r(require('../views/gameList/gameList')), 'gameList');
const info = r => require.ensure([], () => r(require('../views/info/info')), 'info');
const tran = r => require.ensure([], () => r(require('../views/detail/transDetails')), 'tran');
export default [{
    path: '/',
    component: App,
    children: [
        {
            path: '',
            redirect: '/info'
        },
        {
            path:"/main",
            component: main
        },
        {
            path: '/sign',
            component: sign
        },
        {
            path:"/login",
            component: login
        },
        {
            path:"/forget",
            component:forget
        },{
            path:"/reg",
            component:reg
        }
        ,{
            path:"/gameList",
            component:gameList
        }
        ,{
            path:"/info",
            component:info
        },
        {
            path:"/tran",
            component:tran
        }
        // {
        //     path: '/home',
        //     component: home
        // },
        // {
        //     path: '/list',
        //     component: list
        // },
        // {
        //     path: '/detail',
        //     component: detail
        // },
        // {
        //     path:'/page1',
        //     component:page1
        // },
        // {
        //     path:'/page2',
        //     component:page2
        // }
    ]
}]
